<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
</head>
<style>
.blockPadding{
    margin: 0.8rem;
}
.IconImgStyle{
    height:6rem;
    width: 6rem;
    margin:0 auto
}
 @media (max-width: 1024px) and (orientation: landscape) {
            .row-margin {
                margin-top: 4%;
            }
        }
@media (min-width: 1240px) and (orientation: landscape) {
            .row-margin {
                margin-top: 8%;
            }
        }
</style>
<body style="background-color: #fff;">
<header class="aui-bar aui-bar-nav" id="aui-header">
    <div class="aui-pull-left aui-btn" onclick="close_win();">
        <span class="aui-iconfont aui-icon-left"></span>返回
    </div>
    <div class="aui-title" style="left:2rem; right: 2rem;"> <span id="MenuName"></span>
       中级
    </div>
    <div class="aui-pull-right" >
        <!-- <i class="aui-iconfont aui-icon-my" onclick="UserCenter()"></i> -->
    </div>
</header>
    <section class="aui-grid" style="background : #FFF;height: 100%;">
            <div class="aui-row row-margin">
            <div class="aui-col-xs-2"></div>
            <div class="aui-col-xs-4">
                <img class="IconImgStyle" src="http://172.16.32.194/HomePage/smile.png" alt=""  onclick="ClickMiddle()">
                <div class="aui-grid-label">基础-中级</div>
              </div>
              <div class="aui-col-xs-4" onclick="SituationalEmotion()">
                <img class="IconImgStyle" src="http://172.16.32.194/SceneMenu/1.png" alt="">
                <div class="aui-grid-label">情境情绪应对</div>
            </div>
        </div>
        <div class="aui-row">
                <div class="aui-col-xs-2"></div>
                <div class="aui-col-xs-4"  onclick="DesireAndHope()">
                <img class="IconImgStyle" src="http://172.16.32.194/SceneMenu/3.png" alt="">
                <div class="aui-grid-label">愿望与期望</div>
            </div>
            <div class="aui-col-xs-4" onclick="BasicBelief()">
                <img class="IconImgStyle" src="http://172.16.32.194/SceneMenu/2.png" alt="">
                <div class="aui-grid-label">换位思考</div>
            </div>
        </div>
    </section>
</header> 
</body>
</html>
<script type="text/javascript">

    var token = "";
    var userid = "";
    var currentTimestamp = "";
    var operationName = "";
    var additionalInfo = "";
    var groupId = "";
    var scene = "基础";
    var sceneLevel = "中级";
    var courseType = "训练";
    var classSort = "";
    var moodType="";
    var remarks = "";
    var classType = "";
     apiready = function() {
          token = api.pageParam.token
          userid = api.pageParam.uid
    var menuName = api.pageParam.MenuName
    menuName = document.getElementById('MenuName').textContent
}
function close_win(){
    api.openWin({
        name: 'MainMenu',
        url:'./MainMenu.html',
        reload:true
    })
}
function ClickMiddle(){
        api.openWin({
            name: 'SubsetMenu-Middle',
            url:'./SubsetMenu-Middle.html',
            pageParam: {
                    uid: userid,
                    token:token
                },
            reload:true,
        })
    }
    function SituationalEmotion(){
        api.openWin({
            name: 'SituationalEmotion',
            url:'./MiddleScene/SituationalCoping/SituationalCopingSelect.html',
            pageParam: {
                    uid: userid,
                    token:token
                },
            reload:true,
        })
    }
    function DesireAndHope(){
        api.openWin({
            name: 'DesireAndHope',
            url:'./MiddleScene/DesireHope/DesireHopeSelect.html',
            pageParam: {
                    uid: userid,
                    token:token
                },
            reload:true,
        })
    }

    function BasicBelief(){
        api.openWin({
            name: 'DesireAndHope',
            url:'./MiddleScene/BasicBelief/BeliefSelect.html',
            pageParam: {
                    uid: userid,
                    token:token
                },
            reload:true,
        })
    }
  //HomeMiddle--家庭
    //SchoolMiddle--学校
    //AmusementParkMiddle--游乐场
    //ShoppingMiddle--商超
    //HospitalMiddle -- 医院

// function SituationalEmotion(){
//     api.openWin({
//         name: 'SituationalEmotion',
//         url:'./BasicScene/Home/SituationalEmotion/ProblemOne.html',
//         pageParam: {
//                     uid: userid,
//                     token:token
//                 },
//         reload:true
//             })
//     if(api.pageParam.MenuName=='HomeMiddle'){
//           api.openWin({
//         name: 'SituationalEmotion',
//         url:'./MiddleScene/Home/SituationalEmotion/ProblemOne.html',
//         pageParam: {
//                     uid: userid,
//                     token:token
//                 },
//         reload:true
//     })
//     }else if(api.pageParam.MenuName=='SchoolMiddle'){
//           api.openWin({
//             name: 'SituationalEmotion',
//         url:'./MiddleScene/School/SituationalEmotion/ProblemOne.html',
//         pageParam: {
//                     uid: userid,
//                     token:token
//                 },
//         reload:true
//     })
//     }else if(api.pageParam.MenuName=='AmusementParkMiddle'){
//           api.openWin({
//             name: 'SituationalEmotion',
//         url:'./MiddleScene/AmusementPark/SituationalEmotion/ProblemOne.html',
//         pageParam: {
//                     uid: userid,
//                     token:token
//                 },
//         reload:true
//     })
//     }else if(api.pageParam.MenuName=='ShoppingMiddle'){
//           api.openWin({
//             name: 'SituationalEmotion',
//         url:'./MiddleScene/Shopping/SituationalEmotion/ProblemOne.html',
//         pageParam: {
//                     uid: userid,
//                     token:token
//                 },
//         reload:true
//     })
//     }else if(api.pageParam.MenuName=='HospitalMiddle'){
//         api.openWin({
//         name: 'SituationalEmotion',
//         url:'./MiddleScene/Hospital/SituationalEmotion/ProblemOne.html',
//         pageParam: {
//                     uid: userid,
//                     token:token
//                 },
//         reload:true
//     })
//     }
// }
// function DesireAndHope(){
//     if(api.pageParam.MenuName=='HomeMiddle'){
//           api.openWin({
//         name: 'DesireAndHope',
//         url:'./MiddleScene/Home/DesireAndHope/ProblemOne.html',
//         pageParam: {
//                     uid: userid,
//                     token:token
//                 },
//         reload:true
//     })
//     }else if(api.pageParam.MenuName=='SchoolMiddle'){
//           api.openWin({
//             name: 'DesireAndHope',
//         url:'./MiddleScene/School/DesireAndHope/ProblemOne.html',
//         pageParam: {
//                     uid: userid,
//                     token:token
//                 },
//         reload:true
//     })
//     }else if(api.pageParam.MenuName=='AmusementParkMiddle'){
//           api.openWin({
//             name: 'DesireAndHope',
//         url:'./MiddleScene/AmusementPark/DesireAndHope/ProblemOne.html',
//         pageParam: {
//                     uid: userid,
//                     token:token
//                 },
//         reload:true
//     })
//     }else if(api.pageParam.MenuName=='ShoppingMiddle'){
//           api.openWin({
//             name: 'DesireAndHope',
//         url:'./MiddleScene/Shopping/DesireAndHope/ProblemOne.html',
//         pageParam: {
//                     uid: userid,
//                     token:token
//                 },
//         reload:true
//     })
//     }else if(api.pageParam.MenuName=='HospitalMiddle'){
//         api.openWin({
//         name: 'DesireAndHope',
//         url:'./MiddleScene/Hospital/DesireAndHope/ProblemOne.html',
//         pageParam: {
//                     uid: userid,
//                     token:token
//                 },
//         reload:true
//     })
//     }
  
// }
function Empathy(){
    if(api.pageParam.MenuName=='HomeMiddle'){
    api.openWin({
        name: 'Empathy',
        url:'./MiddleScene/Home/Empathy/ProblemOne.html',
        pageParam: {
                    uid: userid,
                    token:token
                },
        reload:true
    }) 
    } else if(api.pageParam.MenuName=='SchoolMiddle'){
        api.openWin({
        name: 'Empathy',
        url:'./MiddleScene/School/Empathy/ProblemOne.html',
        pageParam: {
                    uid: userid,
                    token:token
                },
        reload:true
    })
    } else if(api.pageParam.MenuName=='AmusementParkMiddle'){
        api.openWin({
        name: 'Empathy',
        url:'./MiddleScene/AmusementPark/Empathy/ProblemOne.html',
        pageParam: {
                    uid: userid,
                    token:token
                },
        reload:true
    })
    }  else if(api.pageParam.MenuName=='HospitalMiddle'){
        api.openWin({
        name: 'Empathy',
        url:'./MiddleScene/Hospital/Empathy/ProblemOne.html',
        pageParam: {
                    uid: userid,
                    token:token
                },
        reload:true
    })
    }   else if(api.pageParam.MenuName=='ShoppingMiddle'){
        api.openWin({
        name: 'Empathy',
        url:'./MiddleScene/Shopping/Empathy/ProblemOne.html',
        pageParam: {
                    uid: userid,
                    token:token
                },
        reload:true
    })
    }
   
}
</script>